package com.eaoa.uc.dictionary.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.eaoa.base.EABaseAction;
import com.eaoa.uc.dictionary.bo.DDictionaryItemDeleteBO;

public class DDictionaryItemDeleteAction extends EABaseAction{


	/**
	 * delete a DateDictionaryItem specified by itemno
	 * @author zhenglun.zhou
	 */
	protected ActionForward doWork(ActionMapping mapping, ActionForm form, 
			HttpServletRequest request, HttpServletResponse response){
		String itemnostr = request.getParameter("itemno");
		Long itemno = Long.valueOf(itemnostr);
		DDictionaryItemDeleteBO bo = new DDictionaryItemDeleteBO(itemno);
		bo.execute();
		return mapping.findForward("success");
	}

}